package org.fastsyncer.connector.common;

public class DatabaseConstant {

	/**
	 * Mysql分页语句
	 */
	public static final String DB_MYSQL_PAGE_SQL = " LIMIT ?,?";

	/**
	 * Mysql分页语句空
	 */
	public static final String DB_MYSQL_PAGE_SQL_NULL = " LIMIT 0";

	/**
	 * Mysql驱动
	 */
	public static final String DB_MYSQL_DRIVER_CLASSNAME = "com.mysql.jdbc.Driver";

	/**
	 * Oracle分页语句开始
	 */
	public static final String DB_ORACLE_PAGE_SQL_START = "SELECT * FROM (SELECT A.*, ROWNUM RN FROM (";

	/**
	 * Oracle分页语句结束
	 */
	public static final String DB_ORACLE_PAGE_SQL_END = ")A WHERE ROWNUM <= ?) WHERE RN > ?";

	/**
	 * Oracle分页语句空
	 */
	public static final String DB_ORACLE_PAGE_SQL_NULL = " WHERE ROWNUM = 0";

	/**
	 * Oracle驱动
	 */
	public static final String DB_ORACLE_DRIVER_CLASSNAME = "oracle.jdbc.OracleDriver";

}
